package uic.fyp.prestatement;

public class prestatement {
	public prestatement() {
	}
	public static boolean checkPre(String str) {
		boolean b = false;
		if ((str.indexOf("ico") != 0) 
				&& (str.indexOf("xml") == -1)
				&& (str.indexOf("jpg") == -1)
				&&(str.indexOf("png") == -1)
				&&(str.indexOf("css") == -1) 
				&&(str.indexOf("gif") == -1)
				&&(str.indexOf("jsp")==-1)) {
			String[] tmp = str.split(" "); 
			if(tmp.length>5){
				if(tmp[4].equals("GET")){
					b = true;
				}
			}
		}
		return b;
	}
}
